using UnityEngine;
using System.Collections;


[ExecuteInEditMode()]

public class GameOverGUI : MonoBehaviour
{
	public GUIStyle background;
	public GUIStyle gameOverText;
	public GUIStyle gameOverShadow;
	
	public float gameOverScale = 1.5f;
	public float gameOverShadowScale = 1.5f;
	
	public void OnGUI()
	{
		GUI.Label (new Rect((Screen.width - (Screen.height * 2))* 0.75f, 0, Screen.height *2, Screen.height), "", background);
		
		GUI.matrix =Matrix4x4.TRS(new Vector3(0, 0 , 0), Quaternion.identity, Vector3.one * gameOverShadowScale);
		GUI.Label (new Rect((Screen.width / (2 * gameOverShadowScale)) - 150, (Screen.height / (2 * gameOverShadowScale)) - 40, 300, 100), "Game Over", gameOverShadow);
		GUI.matrix = Matrix4x4.TRS(new Vector3(0, 0, 0), Quaternion.identity, Vector3.one * gameOverScale);
		GUI.Label(new Rect((Screen.width / (2*gameOverScale)) - 150, (Screen.height /(2*gameOverScale))- 40, 300, 100), "Game Over", gameOverText);
	}
}
